<template>
  <div class="about">
    <h1>count{{count}}</h1>
    <button @click="changeCount">count修改</button>
   
  </div>
</template>

<script lang="ts">
 import {defineComponent} from "vue"
export default defineComponent({
  name :"About",
 
});


</script>
<script lang="ts" setup>
let count = 1;
const changeCount=()=>{
console.log(11111);

return {
count,
changeCount
}

}
</script>